import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import path from 'path'

export default defineConfig({
	plugins: [vue()],
	resolve: {
		alias: {
			'@img': path.resolve(__dirname, 'src/assets/img'),
			'@im1': path.resolve(__dirname, 'src/assets/img/m1'),
			'@json': path.resolve(__dirname, 'src/assets/json'),
			'@less': path.resolve(__dirname, 'src/assets/less/index.less'),
			'@ut': path.resolve(__dirname, 'src/utils'),
			'@pa': path.resolve(__dirname, 'src/pages'),
			'@com1': path.resolve(__dirname, 'src/components/m1'),
			'@st': path.resolve(__dirname, 'src/store'),
		}
	},
	server: {
		port: 8090
	}
})